



public abstract class Method implements MethodRunnable {

	public String RUNNING_STATE;
	public String DONE_STATE;

	public void runMethod() {
		if (checkBeforeRun())
			runAlgorithm();
	}

	protected abstract void runAlgorithm();

	public boolean checkBeforeRun() {
		boolean runnable = true;

		PropertyManager propertyManager = new PropertyManager();
		runnable = propertyManager.checkProperties();

		return runnable;
	}
}
